<template>
	<view class="content">
		<scroll-view scroll-y="true">
			<view class="uni-badge-default">语言:</view>
			<view>{{laguage_name}}</view>
			
			<view class="uni-badge-default">星级: </view>
			<view class="feedback-star active ">
				{{star_number}}
			</view>
			
			<view class="uni-badge-default">描述：</view>
			<view>
				{{desc}}
			</view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				laguage_name: '',
				star_number: '',
				desc: ''
			}
		},
		onLoad: function(e) {
			console.log(e);
			uni.request({
				url: 'https://hiik.vip:8888/v2/vue/api/programLanguage/getdetail/' + e.language_name,
				method: 'GET',
				data: {},
				success: res => {
					console.log(res);
					this.laguage_name = res.data.laguage_name;
					this.star_number = res.data.star_number;
					this.desc = res.data.desc;
				},
				fail: () => {},
				complete: () => {}
			});
		}
	}
</script>

<style>
	.content {
		padding: 10upx 2%;
		width: 96%;
		flex-wrap: wrap;
	}

	.title {
		line-height: 2em;
		font-weight: 700;
		font-size: 38upx;
	}

	.art-content {
		line-height: 2em;
	}
</style>
